package com.example.forum.dao;

import com.example.forum.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    Integer insert(User row);

    Integer insertSelective(User row);

    User selectByPrimaryKey(Long id);

    User selectByUserName(@Param("user_name") String user_name);
    Integer updateByPrimaryKeySelective(User row);

    Integer updateByPrimaryKey(User row);


    String selectAvatarUrl(Long userId);
}